<%@ Page Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true" CodeFile="Project.aspx.cs" Inherits="Project" Title="Untitled Page" %>

<%@ Register Src="Controls/TaskView.ascx" TagName="TaskView" TagPrefix="uc3" %>

<%@ Register Src="Controls/StageView.ascx" TagName="StageView" TagPrefix="uc4" %>
<%@ Register Src="Controls/ProjectPanel.ascx" TagName="ProjectPanel" TagPrefix="uc2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="Admin/Controls/EditUsers.ascx" TagName="EditUsers" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<!-- The primary view for the project -->
<h1><asp:Label ID="lblTitle" runat="server" /></h1>
<asp:Panel ID="pnlProject" runat="server" Visible="false">
	<uc2:ProjectPanel ID="ProjectPanel1" runat="server" />
	<div class="contentInfo">
		<asp:HyperLink ID="lnkAddStage" runat="server" NavigateUrl="#" Text="Add Stage" /> | 
		<asp:HyperLink ID="lnkAddTask" runat="server" NavigateUrl="#" Text="Add Task" />
	</div>
	<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetProjectById" TypeName="ProjectsHelper">
		<SelectParameters>
			<asp:QueryStringParameter Name="id" QueryStringField="id" Type="Int32" />
		</SelectParameters>
	</asp:ObjectDataSource>
</asp:Panel>

<!-- Add Stage Popup Information -->
<asp:Panel ID="pnlAddStage" BackColor="#FFFFFF" runat="server">
<asp:Panel ID="pnlAddStageHead" runat="server" CssClass="accordionHeader">Add Stage</asp:Panel>
<uc4:StageView id="StageView1" runat="server" />
<table width="300px">
	<tr>
		<td><asp:Button ID="btnAddStage" runat="server" Text="Add" /></td>
		<td style="text-align: right;"><asp:Button ID="btnCancelStage" runat="server" Text="Cancel" /></td>
	</tr>
</table>
</asp:Panel>
<cc1:ModalPopupExtender 
		ID="mpeAddStage" runat="server"
		TargetControlID="lnkAddStage"
		PopupControlID="pnlAddStage"
		DropShadow="true"
		PopupDragHandleControlID="pnlAddStageHead"
		OkControlID="btnAddStage"
		CancelControlID="btnCancelStage" />

<!-- Add Task Popup Information -->
<asp:Panel ID="pnlAddTask" BackColor="#FFFFFF" runat="server">
<asp:Panel ID="pnlAddTaskHead" runat="server" CssClass="accordionHeader">Add Task</asp:Panel>
<uc3:TaskView ID="TaskView1" runat="server" />
<table width="600px">
	<tr>
		<td><asp:Button ID="btnSaveTask" runat="server" Text="Add" /></td>
		<td style="text-align: right;"><asp:Button ID="btnCancelTask" runat="server" Text="Cancel" /></td>
	</tr>
</table>
</asp:Panel>
<cc1:ModalPopupExtender 
		ID="mpeAddTask" runat="server"
		TargetControlID="lnkAddTask"
		PopupControlID="pnlAddTask"
		DropShadow="true"
		PopupDragHandleControlID="pnlAddTaskHead"
		OkControlID="btnSaveTask"
		CancelControlID="btnCancelTask" />
</asp:Content>

